package cate.common.table.activity.heroup.call;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "英雄上新活动-保底次数")
public class HeroUpEnsureRow extends ERow {

    @NoteField(value = "配置ID")
    public int confID;
    @NoteField(value = "五星保底")
    public int ensureFiveTimes;
    @NoteField(value = "五星保底分组")
    public int ensureFiveGroup;
    @NoteField(value = "up保底")
    public int ensureUpTimes;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("配置ID");
        this.confID = xrw.getInteger("配置ID", 1);
        this.ensureFiveTimes = xrw.getInteger("五星保底", 30);
        this.ensureFiveGroup = xrw.getInteger("五星保底分组", 5);
        this.ensureUpTimes = xrw.getInteger("up保底", 100);
    }
}
